<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%
    String id = request.getParameter("id");
%>
<html>
<head>
    <script type="text/javascript">
        var id = <%=id%>;
        $(document).ready(function () {
            $('#shop-fm').form('syncLoad', "shop/shopInfo.do?id="+id);
            $("#cardPhotoUImg").attr("src", $("#cardPhotoU").val());
            $("#cardPhotoOUImg").attr("src", $("#cardPhotoO").val());
            $("#businessPhotoImg").attr("src", $("#businessPhoto").val());
            $("#licensePhotoImg").attr("src", $("#licensePhoto").val());
            var cardPhotoU = $("#cardPhotoU").val();
            if(cardPhotoU.length == 0){
                $("#auth").hide();
            }
        });
        function acceptAuthOrRefuse(type) {
            $.get("shop/acceptAuthOrRefuseAction.do?type="+type+"&id="+id,function (result) {
                if(result.success == "true"){
                    if(result.type == "1"){
                        $.messager.alert('操作提示', "认证已通过");
                    }else{
                        $.messager.alert('操作提示', "认证已拒绝");
                    }
                }else{
                    $.messager.alert('操作提示', "操作失败");
                }
            });
        }
    </script>
</head>
<body>
<div class="linkbar"><a>店铺管理</a>/<a>店铺信息</a>/<a>店铺信息详情</a></div>
<div class="formtoolbar">
    <form id="shop-fm" method="post" novalidate>
       <div class="fitem">
            <label style="padding-right: 0px;">门脸照：</label>
            <input name="photo" id="userPhoto" class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">店铺名称：</label>
            <input name="name" class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">商铺id：</label>
            <input  name="id"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">手机号：</label>
            <input  name="phone"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">店铺位置：</label>
            <input  name="position"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">详细地址：</label>
            <input  name="address"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">地图位置（经纬度）：</label>
            <input  name="longitude"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">注册时间：</label>
            <input  name="registerTime"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">收款卡持卡人：</label>
            <input name="cardName"  class="easyui-validatebox"/>
        </div>
        <div class="fitem">
            <label style="padding-right: 0px;">收款卡号：</label>
            <input  name="cardNo"  class="easyui-validatebox"/>
        </div>
        <input  name="certifiedStatus"  type="hidden" id="certifiedStatus" />
        <div class="fitem" id="auth">
            <label style="padding-right: 0px;">店铺资质：</label>
            <img id="cardPhotoUImg" src="" style="width:100px;"/>
            <img id="cardPhotoOImg" src="" style="width:100px;"/>
            <img id="businessPhotoImg" src="" style="width:100px;"/>
            <img id="licensePhotoImg" src="" style="width:100px;"/>
            <input id="cardPhotoU"  name="cardPhotoU" type="hidden"/>
            <input id="cardPhotoO" name="cardPhotoO" type="hidden"/>
            <input id="businessPhoto" name="cardPhotoU" type="hidden"/>
            <input  id="licensePhoto" name="licensePhoto" type="hidden"/>
            <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="acceptAuthOrRefuse(1)">通过认证</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="acceptAuthOrRefuse(2)">拒绝</a>
        </div>

    </form>
</div>
<div class="clear"></div>
<div id="dlg-buttons">
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="listback('shop/index.do')">返回</a>
</div>
</body>
</html>